
import {observable, action} from "mobx";
import request from "../utils/request";
import * as api from "../api/api";
import { LoadHoc, loading } from '../hoc/loadHoc';

export default class HomeStore extends LoadHoc {
  /**
   * banner
   */
  @loading @action
  async bannerList(params: {
    callback?: (res: any) => void;
  }) {
    const {callback} = params;
    const res = await request(api.MyWebApiFetchParamCreactor.bannerList());
    callback && callback(res);
  }
}
